import request from '@/utils/request'

// 添加课程基本信息
export const addCourseInfo = courseInfo => {
  return request({
    url: '/eduservice/course/addCourseInfo',
    method: 'POST',
    data: courseInfo
  })
}

// 根据id获取课程信息
export const getCourseInfoById = courseId => {
  return request({
    url: `/eduservice/course/getCourseInfo/${courseId}`,
    method: 'GET'
  })
}

// 更新课程
export const updateCourseInfo = courseInfo => {
  return request({
    url: `/eduservice/course/updateCourseInfo`,
    method: 'POST',
    data: courseInfo
  })
}
